Missing `typeof`

Adding `typeof` to get the actual type of the value passed in.
0.5.8