Simple typecasting in javascript.
var typecast = require('typecast');
typecast(123, 'string') // => '123'
typecast('123', 'number') // => 123
typecast('a, b, c', 'array') // => ['a', 'b', 'c']
typecast('false', 'boolean') // => false
Cast given val
to type
Cast val
to String
Cast val
to Number
Cast val
to Array
Cast val
to Date
Cast val
to Boolean
MIT