Used correct datatype, removed unwanted cast