Prevented possible issues with type casting