Added all primitive casts, working on instanceOf.