coerceInt, coerceLong, coerceFloat, coerceBoolean, coerceString - silenly returns nil if coesion failed:
|
if not isInt(value) then return end |
|
if not isLong(value) then return end |
|
if not isFloat(value) then return end |
Seems it wiil better to raise an error if coercion failed (to be discussed)