* [Utils] Optimize some Type cast.
* [Credits] vitaliyg2.